package com.me.pojo;
import com.fasterxml.jackson.annotation.JsonProperty;

/*
 * 大屏组件模型数据结构
 * */
public class ComponentsItem {
    //组件名称(在大屏上可以摆放多个基础组件的拷贝)
    @JsonProperty("Name")
    private String name;
    //基础组件名称(在程序中只有一份文件)
    @JsonProperty("BaseName")
    private String baseName;
    //组件坐标(x，y)
    @JsonProperty("Coordinate")
    private String coordinate;
    //组件宽高(width,height)
    @JsonProperty("Size")
    private String size;
    //组件上绑定的数据接口
    @JsonProperty("DataAccess")
    private String[] dataAccess;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBaseName(){return baseName;}

    public void setBaseName(String baseName) {
        this.baseName = baseName;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String[] getDataAccess() {
        return dataAccess;
    }

    public void setDataAccess(String[] dataAccess) {
        this.dataAccess = dataAccess;
    }

    public ComponentsItem(String name, String baseName, String coordinate, String size, String[] dataAccess) {
        this.name = name;
        this.baseName = baseName;
        this.coordinate = coordinate;
        this.size = size;
        this.dataAccess = dataAccess;
    }

    public ComponentsItem() {
    }
}
